import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) { }

  @Get('api/data') // 注意这里的路径，确保与前端请求一致
  getData() {
    return this.appService.getHello();
  }
}